import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_tb_base_measures_task_list_entity.g.dart';


@JsonSerializable()
class GetTbBaseMeasuresTaskListEntity {

	GetTbBaseMeasuresTaskListEntity();

	factory GetTbBaseMeasuresTaskListEntity.fromJson(Map<String, dynamic> json) => $GetTbBaseMeasuresTaskListEntityFromJson(json);
  List<GetTbBaseMeasuresTaskChangeList>? workKindCycleChangeList;
	String? id;
	String? riskObjectId;
	String? riskObjectName;
	String? riskUnitId;
	String? riskUnitName;
	String? riskEventId;
	String? riskEventName;
	String? riskMeasureId;
	String? riskMeasureName;
	String? companyCode;
	String? allocationId;
	String? allocationName;
	String? allocationType;
	String? season;
	String? troubleshootContent;
	String? workType;
	String? controlMeasures;
	String? workKind;
	String? workKindLabel;
	String? taskNum;
	String? taskStatus;
	String? checkCycle;
	String? checkCycleUnit;
	dynamic checkCycleUnitLabel;
	String? workStartTime;
	String? workEndTime;
	String? workDayType;
	String? workDayTypeLabel;
	String? instrumentId;
	String? deleted;
	String? createDate;
	String? createBy;
	String? createById;
	String? updateById;
	String? updateDate;
	String? updateBy;
	String? hazardCode;
	String? checkMeans;
	int? status;
	int? inspectionStatus;
	dynamic effectiveTime;
	int? controllable;
	String? departmentId;
	String? userId;
	String? warehouseId;
	String? startRefreshTime;
	String? endRefreshTime;
	int? isUpload;
	int? isApprove;
	dynamic taskTimeNodeTables;

	Map<String, dynamic> toJson() => $GetTbBaseMeasuresTaskListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetTbBaseMeasuresTaskChangeList {

  GetTbBaseMeasuresTaskChangeList();

  factory GetTbBaseMeasuresTaskChangeList.fromJson(Map<String, dynamic> json) => $GetTbBaseMeasuresTaskChangeListFromJson(json);
  String? id;
  String? taskId;
  String? attribute;
  String? startTime;
  String? endTime;
  String? checkCycle;
  String? checkCycleUnit;
  String? checkCycleUnitLabel;
  String? hourStartTime;
  String? hourEndTime;
  String? executeType;
  String? executeTypeLabel;
  String? status;
  String? createBy;
  String? createDate;
  String? updateBy;
  String? updateDate;

  Map<String, dynamic> toJson() => $GetTbBaseMeasuresTaskChangeListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
